<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
     
input[type="radio"] + span::before {
	content: "\a0";		/*不换行空格*/
	display: inline-block;
	vertical-align: middle;
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	border: 1px solid #01cd78;
	border-radius: 50%;
	text-indent: 5px;
	line-height: 1;
}
input[type="radio"]:checked + span::before {
	width: 12px;
	height: 12px;
	background-clip: content-box;
    background: #64afed url('selected.png') no-repeat left top;
    background-size: 100%;
	padding: 2px;
}
input[type="radio"]:disabled + span::before {
	width: 12px;
	height: 12px;
	background-clip: content-box;
    background: red url('selected.png') no-repeat left top;
    background-size: 100%;
	padding: 2px;
}
input[type="radio"] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.c{
    width: 20px;
    overflow:hidden; 

text-overflow:ellipsis;

display:-webkit-box; 

-webkit-box-orient:vertical;

-webkit-line-clamp:2
}
    </style>
</head>
<body>
    <div style="background:black">
    <img src="selected.png" alt="6666">
</div>
    <div class="ul-con">
        <ul style="overflow: hidden;">
            <li><label for="1"><input value="1" type="radio" name="radio" id="1" disabled /><span>一层</span></label></li>
            <li><label for="2"><input value="2" type="radio" name="radio" id="2"  /><span>二层</span></label></li>
            <li><label for="3"><input  value="3" type="radio"  name="radio" id="3"/><span>三层</span></label></li>
            <li><label for="4"><input  value="4" type="radio" name="radio" id="4" /><span>四层</span></label></li>
        </ul>
    </div>

    <div class="c">
        77777777777777777777777777777777777777777777777777
    </div>
   
</body>
<script>
    let radio = document.getElementsByName('radio')
    let a = Object.prototype.toString
   let radio2=document.querySelectorAll('input[type="radio"][value="2"]')[0].setAttribute('checked',true)
    console.log(a.call(radio),radio,radio2,'dddddddddddd')

</script>
</html>